package com.spvs.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.spvs.common.core.annotation.Excel;
import com.spvs.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 常用文件预览对象 file_common_preview
 *
 * @author supervision
 * @date 2024-12-12
 */
public class FileCommonPreview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预览记录唯一标识 */
    private Long previewId;

    /** 预览用户ID */
    @Excel(name = "预览用户ID")
    private Long userId;

    /** 预览文件ID */
    @Excel(name = "预览文件ID")
    private Long fileId;

    /** 预览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date previewTime;

    /** 预览类型（常用） */
    @Excel(name = "预览类型", readConverterExp = "常=用")
    private String previewType;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String infoExtend1;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String infoExtend2;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String infoExtend3;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String infoExtend4;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 预览内容 */
    @Excel(name = "预览内容")
    private String content;

    public void setPreviewId(Long previewId)
    {
        this.previewId = previewId;
    }

    public Long getPreviewId()
    {
        return previewId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFileId(Long fileId)
    {
        this.fileId = fileId;
    }

    public Long getFileId()
    {
        return fileId;
    }
    public void setPreviewTime(Date previewTime)
    {
        this.previewTime = previewTime;
    }

    public Date getPreviewTime()
    {
        return previewTime;
    }
    public void setPreviewType(String previewType)
    {
        this.previewType = previewType;
    }

    public String getPreviewType()
    {
        return previewType;
    }
    public void setInfoExtend1(String infoExtend1)
    {
        this.infoExtend1 = infoExtend1;
    }

    public String getInfoExtend1()
    {
        return infoExtend1;
    }
    public void setInfoExtend2(String infoExtend2)
    {
        this.infoExtend2 = infoExtend2;
    }

    public String getInfoExtend2()
    {
        return infoExtend2;
    }
    public void setInfoExtend3(String infoExtend3)
    {
        this.infoExtend3 = infoExtend3;
    }

    public String getInfoExtend3()
    {
        return infoExtend3;
    }
    public void setInfoExtend4(String infoExtend4)
    {
        this.infoExtend4 = infoExtend4;
    }

    public String getInfoExtend4()
    {
        return infoExtend4;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("previewId", getPreviewId())
            .append("userId", getUserId())
            .append("fileId", getFileId())
            .append("previewTime", getPreviewTime())
            .append("previewType", getPreviewType())
            .append("infoExtend1", getInfoExtend1())
            .append("infoExtend2", getInfoExtend2())
            .append("infoExtend3", getInfoExtend3())
            .append("infoExtend4", getInfoExtend4())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("content", getContent())
            .toString();
    }
}
